package com.bdqn.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.mapper.ReturnPersonMapper;
import com.bdqn.pojo.ReturnPerson;
import com.bdqn.service.ReturnPersonService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import javax.imageio.spi.RegisterableService;
@Service
public class ReturnPersonServiceImpl implements ReturnPersonService {
    @Resource
    private ReturnPersonMapper returnPersonMapper;
    @Override
    public Page<ReturnPerson> getPage(String returnData, Page page) {
        return returnPersonMapper.getPage(returnData,page);
    }

    @Override
    public int add(ReturnPerson returnPerson) {
        return returnPersonMapper.add(returnPerson);
    }

    @Override
    public ReturnPerson selectId(Integer id) {
        return returnPersonMapper.selectId(id);
    }

    @Override
    public int upd(ReturnPerson returnPerson) {
        return returnPersonMapper.upd(returnPerson);
    }

    @Override
    public boolean del(Integer id) {
        return returnPersonMapper.del(id)>0;
    }
}
